package controlLayer;

import java.util.List;

import dbLayer.DBClass;
import modelLayer.Class;

public class ClassCtrl {
	
	private DBClass dbClass = new DBClass();
	
	public ClassCtrl () {
		
	}

	public List<Class> allClasses() {
		
		return dbClass.getAllClasses();
		
	}

	public int highestID() {
		
		return dbClass.HighestID();
		
	}

	public void addClass(Class cl) {
		
		dbClass.addClass(cl);
		
	}

	public void updateClass(Class cl) {
		
		dbClass.updateClass(cl);
		
	}

	public void removeClass(int classID) {
		
		dbClass.removeClass(classID);
		
	}

}
